﻿@using Models.WebSite_HaiSheng
@model List<FileDownload>
@Html.ActionLink("下载创建", "Create")
@*@(Html.Telerik().Grid<FileDownload>().ClientEvents(e => e.OnError("bindingError")).Name("FileDownload").DataBinding(databinding => databinding.Ajax().Select("AjaxFileDownloadIndex", "FileDownload"))
                .DataKeys(keys =>
                {
                    keys.Add(s => s.ID);
                })
                .Columns(c =>
                {
                    c.Bound(item => item.FileName).Width(200);
                    c.Bound(item => item.FileUrl).Width(300);
                    c.Bound(item => item.FileDescription);
                    c.Bound(item => item.ID).Width(250).Title("操作").ClientTemplate("<a href='/FileDownload/edit/" + "<#= ID #>'>编辑</a> | <a href='/FileDownload/details/" + "<#= ID #>'>详细</a>  | <a href='/FileDownload/delete/" + "<#= ID #>'>删除</a>"); 
                   })
              
                .Resizable(resizing => resizing.Columns(true))
                .Pageable(p => p.PageSize(20))
                .Sortable()
                .Scrollable(scrolling => scrolling.Height(350))
)*@

@(Html.Telerik().Grid<FileDownload>(Model).Name("FileDownload")
                .DataKeys(keys =>
                {
                    keys.Add(s => s.ID);
                })
                .Columns(c =>
                {
                    c.Bound(item => item.FileName).Width(200);
                    c.Bound(item => item.FileUrl).Width(300);
                    c.Bound(item => item.FileDescription);
                    c.Bound(item => item.ID).Title("操作").Template(@<span>
                    <a href=@Url.Content("~/FileDownload/Edit/" + item.ID) >编辑</a> | <a href=@Url.Content("~/FileDownload/Details/" + item.ID)>详细</a>  | <a href=@Url.Content("~/FileDownload/delete/" + item.ID) >删除</a> 
                   </span>);
                })
              
                .Resizable(resizing => resizing.Columns(true))
                .Pageable(p => p.PageSize(20))
                .Sortable()
                .Scrollable(scrolling => scrolling.Height(350))
                )